package com.tsingtree.modular.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 社区消息
 * </p>
 *
 * @author jagger
 * @since 2025-05-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="NanSellAnnounceMsg对象", description="社区消息")
public class NanSellAnnounceMsg implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "版本号")
    @Version
    private Integer version;

    @ApiModelProperty(value = "是否删除")
    private Boolean isDel;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "文章ID")
    private Integer announceId;

    @ApiModelProperty(value = "文章主图")
    private String announceThumb;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "类型 0-关注 1-评论 2-回复 3-喜欢")
    private Integer type;

    @ApiModelProperty(value = "消息来源者")
    private Integer fromUserId;

    @ApiModelProperty(value = "消息来源者头像")
    private String fromUserAvatar;

    @ApiModelProperty(value = "消息来源者昵称")
    private String fromUserNick;

    @ApiModelProperty(value = "是否已读")
    private Boolean isRead;

    @ApiModelProperty(value = "评论ID")
    private Integer commentId;


}
